package com.ibeeking.found.report.service.common.constant;

/**
 * 常量
 * @author lr
 * @since 2021-03-26
 */
public class ReportConstant {

    public static String LEFT_BIG_BOAST = "{";
    public static String RIGTH_BIG_BOAST = "}";
    public static String LEFT_MIDDLE_BOAST = "[";
    public static String RIGHT_MIDDLE_BOAST = "]";
    public static String SLASH = "/";

    public static String USER_GUEST = "guest";
    public static String USER_ADMIN = "admin";


    /**
     * 字典项重复
     */
    public static String DICT_ITEM_EXIST_GROUP = "dictItemExist";

    /**
     * 所有url的权限码缓存key
     */
    public static String REPORT_SECURITY_AUTHORITIES = "report:security:authorities:all";

    /**
     * 用户登录的token缓存key
     */
    public static String REPORT_SECURITY_LOGIN_TOKEN = "report:security:login:token:%s";

    /**
     * 用户登录的主信息缓存信息
     */
    public static String REPORT_SECURITY_LOGIN_USER = "report:security:login:user:%s";

    /**
     * 用户
     */
    public static String USER_NAME = "loginName";

    /**
     * 超管用户
     */
    public static String SUPER_USER_NAME = "admin";


    /**
     * 超级管理员角色
     */
    public static String SUPER_ADMIN_ROLE = "superAdmin";

    /**
     * 盖亚属性前缀
     */
    public static String COMPONENT_PREFIX = "spring.gaea.subscribes.";

    /**
     * 系统分隔符
     */
    public static String SPLIT = ",";

    /**
     * 下划线
     */
    public static String UNDERLINE = "_";

    /**
     * 请求头
     */
    public static String Authorization = "Authorization";

    public static final String JM_TOKEN = "token";

    public static final String JM_TOKEN_KEY = "X-Access-Token";
    /**
     * 机构编码
     */
    public static String ORG_CODE = "orgCode";


    /**
     * 租户
     */
    public static String TENANT_CODE = "tenantCode";

    /**
     * 终端类型，web还是移动端
     */
    public static String SYS_CODE = "systemCode";


    /**
     * redis分割
     */
    public static String REDIS_SPLIT = ":";

    /**
     * 国际化
     */
    public static String LOCALE = "locale";

    /**
     * 时区
     */
    public static String TIME_ZONE = "timeZone";

    /**
     * 字符集.
     */
    public static String CHARSET_UTF8 = "UTF-8";

    /**
     * 表ID
     */
    public static String ID = "id";

    /**
     * 年月日期格式
     */
    public static String MOUTH_PATTERN = "yyyy-MM";


    /**
     * 日期格式
     */
    public static String DATE_PATTERN = "yyyy-MM-dd";

    /**
     * 时间格式
     */
    public static String TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";

    /**
     * 降序
     */
    public static String DESC = "DESC";

    /**
     * 升序
     */
    public static String ASC = "ASC";

    /**
     * 空格匹配符
     */
    public static String BLANK_REPLACE = "\\s+";

    /**
     * 空格符
     */
    public static String BLANK = "";

    /**
     * 分隔符
     */
    public static String URL_SPLIT = "#";

    /**
     * 正则
     */
    public static String URL_REGEX = "\\{\\w+\\}";


    /**
     * 时间戳正则
     */
    public static String TIME_MILLIS_REGEX = "^\\d{1,13}";


    /**
     * 需要替换的请求标识
     */
    public static String URL_MARK = "{";


    /**
     * 需要替换的请求标识
     */
    public static String URL_PATTERN_MARK = "${";


    /**
     * 替换的元素
     */
    public static String URL_REPLACEMENT = "**";

    /**
     * 请求头
     */
    public static String SOURCE_IP="sourceIp";


    /**
     * 百分比符号
     */
    public static String PERCENT_SIGN = "%";

    /**
     * 星号
     */
    public static String PATTERN_SIGN = "*";

    public static String REQUEST_TIMESTAMP = "requestTimeStamp";
}
